{extend name="common/base" /}
{block name="title"}会员列表{/block}
{block name="main"}
<body>
<div id="wrapper">
  <!-- Navigation -->
		<div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs">
  	 <h3>会员列表</h3>
  	<div class="bs-example4" data-example-id="contextual-table">
	<h5><a href="{:url('Member/m_add')}"><span class="label label-success">添加会员</span></a></h5>
    <div class="table-responsive">
    <table class="table">
      <thead>
        <tr>
          <th>#</th>
		  <th>头像</th>
          <th>会员名称</th>
          <th>注册ip</th>
		  <th>注册时间</th>
          <th>会员状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
		{volist name="data" id="m" key="k"}
        <tr>
          <th scope="row">{$k}</th>
		      <td><img src="{$m['member_avatar']}" style="width:40px;"/></td>
          <td>{$m.member_title}</td>
		      <td>{$m.member_ip}</td>
          <td>{$m.member_date|date='Y-m-d',###}</td>
          <td><span class="label {$m['member_status']==0?'label-warning':'label-success'}">{$m['member_status']==0?'禁用':'启用'}</span></td>
		  <td>
      {eq name="m['member_check']" value="0"}
        <a href="{:url('Member/m_check',array('member_id'=>$m['member_id']))}"  onclick="javascript:return check();"><span class="label label-warning">审核</span></a> |
      {/eq}
        <a href="{:url('Member/m_select',array('member_id'=>$m['member_id']))}"><span class="label label-success">查看</span></a> |
        <a href="{:url('Member/m_delete',array('id'=>$m['member_id']))}" onclick="javascript:return del();"><span class="label label-danger">删除</span></a>
      </td>
        </tr>
		{/volist}

      </tbody>
    </table>
    </div>
	  <div style="text-align:center;">{$data -> render()}</div>
   </div>
  </div>

          {/block}